<form action="/admin/purchase/add" id="purchase-add-form" data-toggle="ajaxform" data-alertmsg="false" data-options="{closeCurrent:true}">
    <input type="hidden" name="product_id" value="{{$info['id']}}">
    <div class="bjui-row">
        <div class="bjui-row col-2">
            <label class="row-label">产品名称</label>
            <div class="row-input">
                <input type="text" value="{{$info['product_name']}}" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">产品编号</label>
            <div class="row-input">
                <input type="text" value="{{$info['product_no']}}" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">产品图片</label>
            <div class="row-input">
                <img src="{{$info['img_url']}}" alt="" height="100">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">供应商名称</label>
            <div class="row-input">
                <input type="hidden" name="supplier_id" >
                <input type="text" name="supplier_name" id="supplier_name" data-toggle="findgrid" data-options="{
                    include: 'supplier_id,supplier_name',
                    dialogOptions: {title:'查找供应商'},
                    gridOptions: {
                        local: 'local',
                        dataUrl: '/admin/pro/supplier-list?product_id={{$info['id']}}',
                        columns: [
                            {name:'supplier_name', label:'供应商名称', width:100},
                        ]
                    }
                }" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">数量</label>
            <div class="row-input">
                <input type="text" name="number" id="number" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">单价</label>
            <div class="row-input">
                <input type="text" name="unit_price" id="unit_price" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">配送单位</label>
            <div class="row-input">
                <input type="text" name="distribution_company" id="distribution_company" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">配送日期</label>
            <div class="row-input">
                <input type="text" value="@php echo date('Y-m-d H:i:s') @endphp" data-toggle="datepicker"
                       data-pattern="yyyy-MM-dd HH:mm:ss">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">联系方式</label>
            <div class="row-input">
                <input type="text" name="contact_number" id="contact_number" size="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">备注</label>
            <div class="row-input">
                <textarea name="remark" id="remark" data-toggle="autoheight" cols="60" rows="5"></textarea>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">
                <button type="submit" class="btn-green" data-icon="search">保存</button>
                <button type="button" class="btn-close" data-icon="close">取消</button>
            </label>
        </div>
    </div>
</form>
